You can check that the bounding box edges of the object you insert are
also inside the object in which you insert, that still isn't perfect but
you can generalise that to check that condition on points of a grid
within the object you want to insert, that way you would asymptotically
get close to the solution.
But sometimes you insert such small objects that you don't really need
to check that they don't come out.
JC
Warp wrote:
> Christoph Hormann <chr### [at] gmxde> wrote:
>
>>Have a look at the inside() function. It works for all objects ith well
>>defined inside and outside (like isosurfaces)
>
>
> You can place *points* inside an object with this method. However, how
> can you place objects with dimensions randomly inside another object (and
> be sure that no part of the first object comes out of the second)?
>
Post a reply to this message
|